home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
7684
/
7684.xpi
/
chrome
/
firefm.jar
/
skin
/
flock
/
fmToolbar.css
< prev
next >
Wrap
Cascading Style Sheet File
|
2009-08-06
|
13KB
|
404 lines
/**
* Copyright (c) 2008, Jose Enrique Bolanos, Jorge Villalobos
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* * Neither the name of Jose Enrique Bolanos, Jorge Villalobos nor the names
* of its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**/
toolbarbutton.fm-button,
window:not([active="true"]) toolbarbutton.fm-button,
toolbar[iconsize="small"] toolbarbutton.fm-button {
list-style-image: url("chrome://firefm-os/skin/toolbar.png");
padding-top: 1px;
padding-bottom: 1px;
}
toolbarbutton[type="menu-button"].fm-button > toolbarbutton {
padding-top: 0em;
padding-bottom: 0em;
padding-right: 0em;
}
/* Do some juggling with alignment so that our icons look right. */
#navigator-toolbox[mode="full"] > #nav-bar > toolbarbutton.fm-button:not([type="menu-button"]),
#navigator-toolbox[mode="full"] > #nav-bar > toolbarbutton.fm-button[type="menu-button"] > toolbarbutton,
#navigator-toolbox[mode="full"] > #nav-bar > toolbarpaletteitem > toolbarbutton.fm-button:not([type="menu-button"]),
#navigator-toolbox[mode="full"] > #nav-bar > toolbarpaletteitem > toolbarbutton.fm-button[type="menu-button"] > toolbarbutton {
padding-top: 12px;
}
#firefm-toolbar {
background-color: #DFDFDF;
}
#firefm-statusbar-toolbar {
-moz-appearance: none;
-moz-box-align: center;
background-color: transparent;
border: none;
height: 16px;
min-height: 16px !important;
}
#firefm-statusbar-toolbar > toolbarbutton.fm-button:hover,
#firefm-statusbar-toolbar > toolbarbutton.fm-button:hover:active,
#firefm-statusbar-toolbar > toolbarbutton.fm-button[type="menu-button"] > toolbarbutton:hover,
#firefm-statusbar-toolbar > toolbarbutton.fm-button[type="menu-button"] > toolbarbutton:hover:active {
-moz-appearance: none;
border: none;
background: none;
}
#firefm-statusbar-toolbar > toolbarbutton.fm-button,
#firefm-statusbar-toolbar > toolbarbutton.fm-button image {
padding-top: 0em;
padding-bottom: 0em;
}
#firefm-statusbar-toolbar > toolbarbutton.fm-button[type="menu-button"] {
-moz-box-align: start;
}
#firefm-track-info {
min-width: 25em;
}
#firefm-status-track-info {
font-size: 0.8em;
}
/* The wrapper is automatically created in the customize toolbar window. */
#wrapper-firefm-track-info {
width: 20em;
}
/* Home button. */
#firefm-home-button,
#firefm-status-home-button {
-moz-image-region: rect(0px, 16px, 16px, 0px);
}
#firefm-home-button:hover,
#firefm-status-home-button:hover {
-moz-image-region: rect(16px, 16px, 32px, 0px);
}
#firefm-home-button:hover:active,
#firefm-status-home-button:hover:active {
-moz-image-region: rect(0px, 16px, 16px, 0px);
}
/* Log in / log out button. */
#firefm-login-logout-button,
#firefm-status-login-logout-button {
-moz-image-region: rect(0px, 32px, 16px, 16px);
}
#firefm-login-logout-button:not([disabled="true"]):hover,
#firefm-status-login-logout-button:not([disabled="true"]):hover {
-moz-image-region: rect(16px, 32px, 32px, 16px);
}
#firefm-login-logout-button:not([disabled="true"]):hover:active,
#firefm-status-login-logout-button:not([disabled="true"]):hover:active {
-moz-image-region: rect(0px, 32px, 16px, 16px);
}
#firefm-login-logout-button[disabled="true"],
#firefm-status-login-logout-button[disabled="true"] {
-moz-image-region: rect(32px, 32px, 48px, 16px);
}
#firefm-login-logout-button[loggedin="true"],
#firefm-status-login-logout-button[loggedin="true"] {
-moz-image-region: rect(0px, 48px, 16px, 32px);
}
#firefm-login-logout-button[loggedin="true"]:not([disabled="true"]):hover,
#firefm-status-login-logout-button[loggedin="true"]:not([disabled="true"]):hover {
-moz-image-region: rect(16px, 48px, 32px, 32px);
}
#firefm-login-logout-button[loggedin="true"]:not([disabled="true"]):hover:active,
#firefm-status-login-logout-button[loggedin="true"]:not([disabled="true"]):hover:active {
-moz-image-region: rect(0px, 48px, 16px, 32px);
}
/* Station button. */
#firefm-station-button,
#firefm-status-station-button {
-moz-image-region: rect(0px, 64px, 16px, 48px);
}
#firefm-station-button:not([disabled="true"]):hover,
#firefm-status-station-button:not([disabled="true"]):hover {
-moz-image-region: rect(16px, 64px, 32px, 48px);
}
#firefm-station-button:not([disabled="true"]):hover:active,
#firefm-status-station-button:not([disabled="true"]):hover:active {
-moz-image-region: rect(0px, 64px, 16px, 48px);
}
#firefm-station-button[disabled="true"],
#firefm-status-station-button[disabled="true"] {
-moz-image-region: rect(32px, 64px, 48px, 48px);
}
#firefm-station-button[firstRun="true"],
#firefm-station-button[firstRun="true"]:hover,
#firefm-station-button[firstRun="true"]:hover:active,
#firefm-status-station-button[firstRun="true"],
#firefm-status-station-button[firstRun="true"]:hover,
#firefm-status-station-button[firstRun="true"]:hover:active {
list-style-image: url("chrome://firefm/skin/stationAnim.png");
-moz-image-region: auto;
}
/* Play / stop button. */
#firefm-play-stop-button,
#firefm-status-play-stop-button {
-moz-image-region: rect(0px, 80px, 16px, 64px);
}
#firefm-play-stop-button:not([disabled="true"]):hover,
#firefm-status-play-stop-button:not([disabled="true"]):hover {
-moz-image-region: rect(16px, 80px, 32px, 64px);
}
#firefm-play-stop-button:not([disabled="true"]):hover:active,
#firefm-status-play-stop-button:not([disabled="true"]):hover:active {
-moz-image-region: rect(0px, 80px, 16px, 64px);
}
#firefm-play-stop-button[disabled="true"],
#firefm-status-play-stop-button[disabled="true"] {
-moz-image-region: rect(32px, 80px, 48px, 64px);
}
#firefm-play-stop-button[playing="true"],
#firefm-status-play-stop-button[playing="true"] {
-moz-image-region: rect(0px, 96px, 16px, 80px);
}
#firefm-play-stop-button[playing="true"]:not([disabled="true"]):hover,
#firefm-status-play-stop-button[playing="true"]:not([disabled="true"]):hover {
-moz-image-region: rect(16px, 96px, 32px, 80px);
}
#firefm-play-stop-button[playing="true"]:not([disabled="true"]):hover:active,
#firefm-status-play-stop-button[playing="true"]:not([disabled="true"]):hover:active {
-moz-image-region: rect(0px, 96px, 16px, 80px);
}
/* Skip button. */
#firefm-skip-button,
#firefm-status-skip-button {
-moz-image-region: rect(0px, 112px, 16px, 96px);
}
#firefm-skip-button:not([disabled="true"]):hover,
#firefm-status-skip-button:not([disabled="true"]):hover {
-moz-image-region: rect(16px, 112px, 32px, 96px);
}
#firefm-skip-button:not([disabled="true"]):hover:active,
#firefm-status-skip-button:not([disabled="true"]):hover:active {
-moz-image-region: rect(0px, 112px, 16px, 96px);
}
#firefm-skip-button[disabled="true"],
#firefm-status-skip-button[disabled="true"] {
-moz-image-region: rect(32px, 112px, 48px, 96px);
}
/* Volume button. */
#firefm-volume-button,
#firefm-status-volume-button {
-moz-image-region: rect(0px, 160px, 16px, 144px);
}
#firefm-volume-button:not([disabled="true"]):hover,
#firefm-status-volume-button:not([disabled="true"]):hover {
-moz-image-region: rect(16px, 160px, 32px, 144px);
}
#firefm-volume-button:not([disabled="true"]):hover:active,
#firefm-status-volume-button:not([disabled="true"]):hover:active {
-moz-image-region: rect(0px, 160px, 16px, 144px);
}
#firefm-volume-button[volume="low"],
#firefm-status-volume-button[volume="low"] {
-moz-image-region: rect(0px, 144px, 16px, 128px);
}
#firefm-volume-button[volume="low"]:not([disabled="true"]):hover,
#firefm-status-volume-button[volume="low"]:not([disabled="true"]):hover {
-moz-image-region: rect(16px, 144px, 32px, 128px);
}
#firefm-volume-button[volume="low"]:not([disabled="true"]):hover:active,
#firefm-status-volume-button[volume="low"]:not([disabled="true"]):hover:active {
-moz-image-region: rect(0px, 144px, 16px, 128px);
}
#firefm-volume-button[volume="zero"],
#firefm-status-volume-button[volume="zero"] {
-moz-image-region: rect(0px, 128px, 16px, 112px);
}
#firefm-volume-button[volume="zero"]:not([disabled="true"]):hover,
#firefm-status-volume-button[volume="zero"]:not([disabled="true"]):hover {
-moz-image-region: rect(16px, 128px, 32px, 112px);
}
#firefm-volume-button[volume="zero"]:not([disabled="true"]):hover:active,
#firefm-status-volume-button[volume="zero"]:not([disabled="true"]):hover:active {
-moz-image-region: rect(0px, 128px, 16px, 112px);
}
#firefm-volume-button[disabled="true"],
#firefm-status-volume-button[disabled="true"] {
-moz-image-region: rect(32px, 128px, 48px, 112px);
}
/* Love button. */
#firefm-love-button,
#firefm-status-love-button {
-moz-image-region: rect(0px, 176px, 16px, 160px);
}
#firefm-love-button:not([disabled="true"]):hover,
#firefm-status-love-button:not([disabled="true"]):hover {
-moz-image-region: rect(16px, 176px, 32px, 160px);
}
#firefm-love-button:not([disabled="true"]):hover:active,
#firefm-status-love-button:not([disabled="true"]):hover:active {
-moz-image-region: rect(0px, 176px, 16px, 160px);
}
#firefm-love-button[disabled="true"],
#firefm-status-love-button[disabled="true"] {
-moz-image-region: rect(32px, 176px, 48px, 160px);
}
/* Ban button. */
#firefm-ban-button,
#firefm-status-ban-button {
-moz-image-region: rect(0px, 192px, 16px, 176px);
}
#firefm-ban-button:not([disabled="true"]):hover,
#firefm-status-ban-button:not([disabled="true"]):hover {
-moz-image-region: rect(16px, 192px, 32px, 176px);
}
#firefm-ban-button:not([disabled="true"]):hover:active,
#firefm-status-ban-button:not([disabled="true"]):hover:active {
-moz-image-region: rect(0px, 192px, 16px, 176px);
}
#firefm-ban-button[disabled="true"],
#firefm-status-ban-button[disabled="true"] {
-moz-image-region: rect(32px, 192px, 48px, 176px);
}
/* Tag button. */
#firefm-tag-button,
#firefm-status-tag-button {
-moz-image-region: rect(0px, 208px, 16px, 192px);
}
#firefm-tag-button:not([disabled="true"]):hover,
#firefm-status-tag-button:not([disabled="true"]):hover {
-moz-image-region: rect(16px, 208px, 32px, 192px);
}
#firefm-tag-button:not([disabled="true"]):hover:active,
#firefm-status-tag-button:not([disabled="true"]):hover:active {
-moz-image-region: rect(0px, 208px, 16px, 192px);
}
#firefm-tag-button[disabled="true"],
#firefm-status-tag-button[disabled="true"] {
-moz-image-region: rect(32px, 208px, 48px, 192px);
}
/* Share button. */
#firefm-share-button,
#firefm-status-share-button {
-moz-image-region: rect(0px, 224px, 16px, 208px);
}
#firefm-share-button:not([disabled="true"]):hover,
#firefm-status-share-button:not([disabled="true"]):hover {
-moz-image-region: rect(16px, 224px, 32px, 208px);
}
#firefm-share-button:not([disabled="true"]):hover:active,
#firefm-status-share-button:not([disabled="true"]):hover:active {
-moz-image-region: rect(0px, 224px, 16px, 208px);
}
#firefm-share-button[disabled="true"],
#firefm-status-share-button[disabled="true"] {
-moz-image-region: rect(32px, 224px, 48px, 208px);
}
/* Video button. */
#firefm-video-button,
#firefm-status-video-button {
-moz-image-region: rect(0px, 240px, 16px, 224px);
}
#firefm-video-button:not([disabled="true"]):hover,
#firefm-status-video-button:not([disabled="true"]):hover {
-moz-image-region: rect(16px, 240px, 32px, 224px);
}
#firefm-video-button:not([disabled="true"]):hover:active,
#firefm-status-video-button:not([disabled="true"]):hover:active {
-moz-image-region: rect(0px, 240px, 16px, 224px);
}
#firefm-video-button[disabled="true"],
#firefm-status-video-button[disabled="true"] {
-moz-image-region: rect(32px, 240px, 48px, 224px);
}